home *** CD-ROM | disk | FTP | other *** search
- Path: news.doit.wisc.edu!news
- From: Tuan Truong <tqtruong@students.wisc.edu>
- Newsgroups: comp.lang.c
- Subject: [HELP] Calling BTRIEVE function in C
- Date: 4 Jan 1996 04:40:02 GMT
- Organization: UW-Madison
- Message-ID: <4cfln2$1hsu@news.doit.wisc.edu>
- NNTP-Posting-Host: f183-053.net.wisc.edu
- Mime-Version: 1.0
- Content-Type: text/plain
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- Hello,
-
- I am trying to integrade a DOS application to a WINDOWS
- application(DYNAMICS). To do this, I needed to be able to open
- DYNAMICS' files, which are BTRIEVE files.However, I could not
- open the files. Here is how I did it:
-
- ***********MyCode.C********
-
- #define BTI_DOS
- #include "btrapi.h"
-
- int main()
- {
- :
- :
- status = btrv(0,......,..); //open a btrieve file
- :
- :
- return 0;
- }
-
- **********END**********
-
- When I compile MyCode.C using the Turbo C++(ver.4.5), everything went OK.
- However, when I selected RUN, I got an error message:
-
- Error: Undefine symbol BTRV(..).
-
- Questions:
-
- 1) Could it be the fact that I did not have the BTRIEVE (DOS version)
- running before I tried to run MyCode.exe?
-
- 2) Do I need the DOS version of BTRIEVE when I already got the WINDOWS
- version?
-
-
- Please help! If possible, please suggest me a way to work this out.
-
- Thank you!
-
- Tuan Truong
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-